package com.rain.bean;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

/**
 *
 * @param <T>
 */
public class PageBean<T> {
    public static final int PAGE_SIZE = 4;
    //当前页码
    private Integer pageNo;
    //总页码
    private Integer pageTotal;
    //当前页显示数量
    private Integer pageSize = PAGE_SIZE;
    //总记录数
    private Integer pageTotalCount;
    //当前页数据
    private List<T> itms;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(Integer pageTotal) {
        this.pageTotal = pageTotal;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getpageTotalCount() {
        return pageTotalCount;
    }

    public void setpageTotalCount(Integer getPageTotalCount) {
        this.pageTotalCount = getPageTotalCount;
    }

    public List<T> getItms() {
        return itms;
    }

    public void setItms(List<T> itms) {
        this.itms = itms;
    }


    @Override
    public String toString() {
        return "PageBean{" +
                ", pageNo=" + pageNo +
                ", pageTotal=" + pageTotal +
                ", pageSize=" + pageSize +
                ", pageTotalCount=" + pageTotalCount +
                ", itms=" + itms +
                '}';
    }
}
